﻿using LNet;
using OestsServer.Net;

namespace OestsServer.Handlers.UnityHandlers
{
    public class StartLearnHandler : HandlerBase<UnityClientChannel>
    {
        public override PacketKey PKey
        {
            get
            {
                return PacketKey.StartLearn;
            }
        }


        public override void Execute(UnityClientChannel client, Request packet)
        {
            int taskId = int.Parse(packet.DataStr);
            ResponsePacket.ReturnCode = ReturnCode.Success;
            ResponsePacket.DataObject = taskId;
            client.Send(ResponsePacket);
        }
    }

}
